package com.cp.support.gray;

import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 灰度发布web拦截添加器
 *
 * @author YangXiaoLong
 * 2022/11/3 23:51
 */
public class GrayWebInterceptorAdder implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new GrayWebHandlerInterceptor());
    }
}
